package com.example.agriapp.model.bean;

import java.io.Serializable;

public class User implements Serializable {
    private int id;
    private String username;
    private String realName;
    private String phone;
private int points;
    public User(int id, String username, String realName, String phone) {
        this.id = id;
        this.username = username;
        this.realName = realName;
        this.phone = phone;
    }

    public User(int id, String username, String realName, String phone, int points) {
        this.id = id;
        this.username = username;
        this.realName = realName;
        this.phone = phone;
        this.points = points;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    // Getter 方法
    public int getId() { return id; }
    public String getUsername() { return username; }
    public String getRealName() { return realName; }
    public String getPhone() { return phone; }
}